package com.qlzb.taskmanagement.vo.quartzVo;


import com.qlzb.taskmanagement.entity.CronInfoEntity;
import com.qlzb.taskmanagement.task.CreateCrawlerTask;
import com.qlzb.taskmanagement.utils.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.ArrayList;
import java.util.List;

public class QuartzUserList {
    private Logger logger = LoggerFactory.getLogger(this.getClass());

    public static List<CronInfoEntity> cronEntitys= new ArrayList<>();

    //通过启动areaid 获取area
    public static CronInfoEntity getCronEntityByAreaId(String areaId) {
        for(CronInfoEntity cronEntity: cronEntitys){
            if(areaId.equals(cronEntity.getUrl())){
                return cronEntity;
            }
        }
        return null;
    }
}
